package cn.zzuli.mall.product.service;

import cn.zzuli.mall.product.vo.AttrGroupRelationVo;
import cn.zzuli.mall.product.vo.AttrResponseVo;
import cn.zzuli.mall.product.vo.AttrVo;
import com.baomidou.mybatisplus.extension.service.IService;
import cn.zzuli.common.utils.PageUtils;
import cn.zzuli.mall.product.entity.AttrEntity;

import java.util.List;
import java.util.Map;

/**
 * ??Ʒ?
 *
 * @author ç»¯è²ä¸åè¶
 * @email 17719158821@163.com
 * @date 2021-03-11 18:25:23
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveAttr(AttrVo attr);

    PageUtils queryBaseAttrPage(Map<String, Object> params, Long catelogId,String type);

    AttrResponseVo getAttrInfo(Long attrId);

    void updateAttr(AttrVo attr);

    List<AttrEntity> getRelationAttr(Long attrgroupId);

    void deleteRelation(AttrGroupRelationVo[] vos);

    PageUtils getNoRelationAttr(Map<String, Object> params, Long attrgroupId);

}

